/*
Copyright 2021 LuJun

Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software and associated documentation files (the "Software"), to deal 
in the Software without restriction, including without limitation the rights 
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies of the Software, and to permit persons to whom the Software is furnished 
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in 
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/**
 * @zh
 * 框架宏对象
 */
export const Macro = {
    /**
     * @zh
     * 冲突作为错误处理
     */
    CONFLICT_AS_ERROR: true,

    /**
     * @zh
     * 默认异步等待次数，-1 表示不限制
     */
    ASYNC_WAIT_TIMES: -1,

    /**
     * @zh
     * 默认自动加载数据表<br/>
     * 如果为true，那么会在加载游戏包的时候加载所有数据表。
     */
    LOADTABLE_AUTO: true,

    /**
     * @zh
     * 定时器时间片，秒
     */
    TIMER_TIMESLICE: 1,

    /**
     * @zh
     * HTTP心跳，不大于0表示不使用
     */
    HTTP_HEARTTICK: -1,

    /**
     * @zh
     * WS心跳
     */
    WEBSOCKET_HEARTTICK: 10,

    // ------------------------------ 调试

    /**
     * @zh
     * 调试 - 核心
     */
    DEBUG_CORE: false,

    /**
     * @zh
     * 调试 - 存档模块
     */
    DEBUG_ARCHIVE: false,

    /**
     * @zh
     * 调试 - 音频模块
     */
    DEBUG_AUDIO: false,

    /**
     * @zh
     * 调试 - 配置模块
     */
    DEBUG_CONFIG: false,

    /**
     * @zh
     * 调试 - 数据表模块
     */
    DEBUG_TABLE: false,

    /**
     * @zh
     * 调试 - 语言模块
     */
    DEBUG_LANGUAGE: false,

    /**
     * @zh
     * 调试 - 网络模块
     */
    DEBUG_NETWORK: false,

    /**
     * @zh
     * 调试 - 定时器模块
     */
    DEBUG_TIMER: false,

    // ------------------------------ 索引

    /**
     * @zh
     * 索引路径-UI界面
     */
    INDEXPATH_UI: 'ui',

    /**
     * @zh
     * 索引路径-数据表
     */
    INDEXPATH_TABLE: 'table',

    /**
     * @zh
     * 索引路径-字体
     */
    INDEXPATH_FONT: 'font',

    /**
     * @zh
     * 索引路径-语言
     */
    INDEXPATH_LANGUAGE: 'language',

    /**
     * @zh
     * 索引路径-预制体
     */
    INDEXPATH_PREFAB: 'prefab',

    /**
     * @zh
     * AUDIO
     */
    INDEXPATH_AUDIO: 'audio'
};
